package cn.wolfcode.luowowo.article.service.impl;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.article.domain.Recommend;
import cn.wolfcode.luowowo.article.mapper.RecommendMapper;
import cn.wolfcode.luowowo.article.service.IDestinationService;
import cn.wolfcode.luowowo.article.service.IRecommedService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class RecommedServiceImpl implements IRecommedService {

    @Autowired
    private RecommendMapper recommendMapper;
    @Autowired
    private IDestinationService destinationService;

    public List<Recommend> selecetAll() {
        return  recommendMapper.selectAll();
    }

    @Override
    public Recommend selectById(Long recommendId) {
        return recommendMapper.selectByPrimaryKey(recommendId);
    }
}
